import axios from "@/utils/request.js"
//获取验证码  wyregisterS
export function captchas(data) {
    return axios({
        url: '/v1/captchas',
        method: 'POST',
        data
    })
}
//登录login
export function login(data) {
    return axios({
        url: '/v2/login',
        method: 'post',
        data
    })
}
//获取用户信息中的头像
export function avatar() {
    return axios({
        url: "/v1/user",
        method: 'GET'
    })
}
// 首页轮播图
export function indexentry() {
    return axios({
        url: '/v2/index_entry',
        method: 'get',
    })
}
//获取商铺列表
export function restaurants(params) {
    return axios({
        url: '/shopping/restaurants',
        method: 'GET',
        params
    })

}
//服务中心
export function explain() {
    return axios({
        url: '/v3/profile/explain',
        method: 'GET',
    })
}
//根据经纬度详细定位
export function geohash(params) {
    return axios({
        url: 'v2/pois/' + params,
        method: 'GET',
    })
}